package utils

import (
	"github.com/BurntSushi/toml"
	"github.com/labstack/gommon/log"
)

var LawCase LawCaseApiAll

type LawCaseApiAll struct {
	LawCaseApi struct {
		Mysql string //数据库地址
		Env   string //环境变量
	}
}

func init() {
	_, err := toml.DecodeFile("appsetting.toml", &LawCase)
	if err != nil {
		log.Fatal(err)
	}
}
